package cho05;

/**
 * Created by 春旺 on 2017/4/12.
 */
import java.util.Random;
public class Card {
    private int Heart, Spade, Diamond, Club, num;
    private String a;

    Random number = new Random();

    public int point() {
        num = number.nextInt(13) + 1;
        return num;
    }

    public String toString() {
        Heart = 0;
        Spade = 1;
        Diamond = 2;
        Club = 3;
        int  type = number.nextInt(4);
        if (type ==1)
            a = "Heart";
        if (type ==2)
            a = "Spade";
        if(type == 3)
            a ="Diamond";
        if (type == 4)
            a="Club";
        return(a);
    }
    public int getNum()
    {
        return num;
    }

}

